WpAssetCleanUp\OptimiseAssets\OptimizeCommon D

Total Complexity 359
Dependencies 17
Dependents 17
Total lines 1,883
Lines of code 1,076
Logical lines of code 694
Comment lines 439
Methods 41
Properties 4

Methods 41

Method Rating Maintainability Complexity Lines of code
clearCache()
D
19
68 174
getAssetCachedData()
C
37 28 61
alterHtmlSource()
B
41 19 50
getLocalCleanSourceFromTag()
B
45 19 37
setAssetCachedData()
A
43 16 42
init()
A
40 13 61
getSourceRelPath()
A
43 13 48
clearAssetCachedData()
A
47 14 30
getLocalAssetPath()
A
48 13 33
getDomLoadedTag()
A
47 11 39
clearJsonStorageForPost()
A
47 11 33
isSourceFromSameHost()
A
49 8 28
filterWpContentUrl()
A
55 8 17
markMostRecentAssetFile()
S
57 7 14
getStorageStats()
S
46 5 37
filterStorageFileName()
S
54 6 21
originalContentMarkAsAlreadyMinified()
S
53 6 20
maybeAlterHtmlSource()
S
58 6 17
cleanerHtmlSource()
S
56 6 17
doCombineIsRegularPage()
S
57 6 16
getAnyCdnUrls()
S
59 6 15
loadOptimizedAssetsIfQueryStrings()
S
53 5 21
rmNonEmptyJsonStorageDir()
S
59 5 13
getPathToAssetDir()
S
55 4 19
stripSourceMap()
S
56 4 18
limitAlreadyMarkedAsMinified()
S
56 4 16
clearOtherPluginsCache()
S
68 5 7
doNotClearCache()
S
65 5 9
getTransient()
S
58 4 15
cdnToUrlFormat()
S
60 4 13
getCleanHrefAfterCdnStrip()
S
59 4 13
applyDebugTiming()
S
50 2 32
getAlreadyMarkedAsMinified()
S
57 3 16
setTransient()
S
59 3 15
removeAlreadyMarkedAsMinified()
S
58 3 15
getMostRecentCachedAssets()
S
61 3 12
getRelPathPluginCacheDir()
S
71 3 5
appendInlineCodeToCombineAssetType()
S
69 3 6
deleteTransient()
S
64 3 9
originalContentIsAlreadyMarkedAsMinified()
S
63 2 9
clearAllCache()
S
80 1 3